package com.gzsxy.sso.common.dto.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 应用新增对象
 * @date 2021/12/9 13:57
 */
@ApiModel("App查询对象")
@Data
public class AppRequest {


    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "名称")
    private String name;


    @JsonFormat(pattern = "yyyy-MM-dd")
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "生效开始时间")
    private Date startDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "生效结束时间")
    private Date endDate;

    @ApiModelProperty(value = "是否禁用（0否1是）")
    private Boolean isDisabled;

    @ApiModelProperty(value = "排序id")
    private Long orderId;
}
